home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 2010 Software/Programs / PCGuia_programas.iso / Software / Utils / Universal Viewer / UniversalViewer.exe / Plugins / Syn2 / HL / Visual Basic.lcf < prev   
Encoding:
Text File  |  2007-12-12  |  11.5 KB  |  495 lines

  1. object SyntAnalyzer3: TLibSyntAnalyzer
  2.   Formats = <
  3.     item
  4.       DisplayName = 'Default'
  5.       Font.Charset = DEFAULT_CHARSET
  6.       Font.Color = clWindowText
  7.       Font.Height = -13
  8.       Font.Name = 'Courier New'
  9.       Font.Style = []
  10.       FormatType = ftCustomFont
  11.     end
  12.     item
  13.       DisplayName = 'Symbol'
  14.       Font.Charset = DEFAULT_CHARSET
  15.       Font.Color = clMaroon
  16.       Font.Height = -13
  17.       Font.Name = 'Courier New'
  18.       Font.Style = [fsBold]
  19.     end
  20.     item
  21.       DisplayName = 'Number'
  22.       Font.Charset = DEFAULT_CHARSET
  23.       Font.Color = clNavy
  24.       Font.Height = -13
  25.       Font.Name = 'Courier New'
  26.       Font.Style = [fsBold]
  27.     end
  28.     item
  29.       DisplayName = 'String'
  30.       Font.Charset = DEFAULT_CHARSET
  31.       Font.Color = clBlue
  32.       Font.Height = -13
  33.       Font.Name = 'Courier New'
  34.       Font.Style = []
  35.     end
  36.     item
  37.       DisplayName = 'Identifier'
  38.       Font.Charset = DEFAULT_CHARSET
  39.       Font.Color = clWindowText
  40.       Font.Height = -13
  41.       Font.Name = 'Courier New'
  42.       Font.Style = []
  43.     end
  44.     item
  45.       DisplayName = 'Reserved word'
  46.       Font.Charset = DEFAULT_CHARSET
  47.       Font.Color = clWindowText
  48.       Font.Height = -13
  49.       Font.Name = 'Courier New'
  50.       Font.Style = [fsBold]
  51.     end
  52.     item
  53.       DisplayName = 'Comment'
  54.       Font.Charset = DEFAULT_CHARSET
  55.       Font.Color = clRed
  56.       Font.Height = -13
  57.       Font.Name = 'Courier New'
  58.       Font.Style = [fsBold, fsItalic]
  59.     end
  60.     item
  61.       DisplayName = 'Preprocessor'
  62.       Font.Charset = DEFAULT_CHARSET
  63.       Font.Color = clGreen
  64.       Font.Height = -13
  65.       Font.Name = 'Courier New'
  66.       Font.Style = [fsItalic]
  67.     end
  68.     item
  69.       DisplayName = 'Line separator'
  70.       Font.Charset = DEFAULT_CHARSET
  71.       Font.Color = clWindowText
  72.       Font.Height = -13
  73.       Font.Name = 'Courier New'
  74.       Font.Style = []
  75.       BgColor = clRed
  76.     end
  77.     item
  78.       DisplayName = 'Sub background'
  79.       Font.Charset = DEFAULT_CHARSET
  80.       Font.Color = clWindowText
  81.       Font.Height = -13
  82.       Font.Name = 'Courier New'
  83.       Font.Style = []
  84.       BgColor = 15663082
  85.       FormatType = ftBackGround
  86.     end
  87.     item
  88.       DisplayName = 'Marked block'
  89.       Font.Charset = DEFAULT_CHARSET
  90.       Font.Color = clHighlightText
  91.       Font.Height = -13
  92.       Font.Name = 'Courier New'
  93.       Font.Style = []
  94.       BgColor = clHighlight
  95.       FormatType = ftColor
  96.     end>
  97.   TokenRules = <
  98.     item
  99.       DisplayName = 'String'
  100.       StyleName = 'String'
  101.       TokenType = 4
  102.       Expression = 
  103.         '#if only one " string to end '#13#10'#of line will be highlighted, '#13#10'#' +
  104.         'otherwise after closing it '#13#10'#string will not be highlighted '#13#10'"' +
  105.         '.*?("|$)'#13#10
  106.       ColumnFrom = 0
  107.       ColumnTo = 0
  108.     end
  109.     item
  110.       DisplayName = 'end'
  111.       StyleName = 'Identifier'
  112.       TokenType = 2
  113.       Expression = 'end'#13#10
  114.       ColumnFrom = 0
  115.       ColumnTo = 0
  116.     end
  117.     item
  118.       DisplayName = 'Any name'
  119.       StyleName = 'Identifier'
  120.       TokenType = 2
  121.       Expression = '#first charecter can'#39't be digit'#13#10'[a-z_]\w*'
  122.       ColumnFrom = 0
  123.       ColumnTo = 0
  124.     end
  125.     item
  126.       DisplayName = 'Float'
  127.       StyleName = 'Number'
  128.       TokenType = 6
  129.       Expression = 
  130.         '#with exp. dot is optional '#13#10'\d+ \.? \d+ e [\+\-]? \d+ |'#13#10'#witho' +
  131.         'ut exp. dot is required'#13#10'\d+ \. \d+'#13#10' '
  132.       ColumnFrom = 0
  133.       ColumnTo = 0
  134.     end
  135.     item
  136.       DisplayName = 'Integer'
  137.       StyleName = 'Number'
  138.       TokenType = 5
  139.       Expression = '#any sequence of digits'#13#10'\d+'
  140.       ColumnFrom = 0
  141.       ColumnTo = 0
  142.     end
  143.     item
  144.       DisplayName = 'Comment'
  145.       StyleName = 'Comment'
  146.       TokenType = 1
  147.       Expression = '#all chars after '#39' to end of line'#13#10#39'.*'
  148.       ColumnFrom = 0
  149.       ColumnTo = 0
  150.     end
  151.     item
  152.       DisplayName = 'HEX'
  153.       StyleName = 'Number'
  154.       TokenType = 7
  155.       Expression = '#Hex is started with $ sign'#13#10'\$[\da-f]+'
  156.       ColumnFrom = 0
  157.       ColumnTo = 0
  158.     end
  159.     item
  160.       DisplayName = 'Symbol'
  161.       StyleName = 'Symbol'
  162.       TokenType = 3
  163.       Expression = '[/,\.;:\(\)=<>\+\-&%\$]+'
  164.       ColumnFrom = 0
  165.       ColumnTo = 0
  166.     end>
  167.   BlockRules = <
  168.     item
  169.       DisplayName = 'Key words'
  170.       StyleName = 'Reserved word'
  171.       BlockType = btTagDetect
  172.       ConditionList = <
  173.         item
  174.           TagList.Strings = (
  175.             'addressof'
  176.             'alias'
  177.             'and'
  178.             'appactivate'
  179.             'as'
  180.             'beep'
  181.             'binary'
  182.             'boolean'
  183.             'byref'
  184.             'byte'
  185.             'byval'
  186.             'call'
  187.             'case'
  188.             'chdir'
  189.             'chdrive'
  190.             'choose'
  191.             'close'
  192.             'const'
  193.             'currency'
  194.             'date'
  195.             'decimal'
  196.             'declare'
  197.             'deletesetting'
  198.             'dim'
  199.             'do'
  200.             'doevents'
  201.             'double'
  202.             'each'
  203.             'else'
  204.             'elseif'
  205.             'empty'
  206.             'end'
  207.             'enum'
  208.             'eqv'
  209.             'erase'
  210.             'error'
  211.             'event'
  212.             'exit'
  213.             'filecopy'
  214.             'for'
  215.             'friend'
  216.             'function'
  217.             'get'
  218.             'gosub'
  219.             'goto'
  220.             'if'
  221.             'imp'
  222.             'implements'
  223.             'in'
  224.             'input'
  225.             'integer'
  226.             'is'
  227.             'kill'
  228.             'let'
  229.             'lib'
  230.             'like'
  231.             'line'
  232.             'load'
  233.             'lock'
  234.             'long'
  235.             'loop'
  236.             'lset'
  237.             'new'
  238.             'next'
  239.             'not'
  240.             'null'
  241.             'object'
  242.             'on'
  243.             'optional'
  244.             'or'
  245.             'paramarray'
  246.             'private'
  247.             'property'
  248.             'public'
  249.             'return'
  250.             'select'
  251.             'set'
  252.             'single'
  253.             'static'
  254.             'step'
  255.             'stop'
  256.             'string'
  257.             'sub'
  258.             'switch'
  259.             'then'
  260.             'to'
  261.             'type'
  262.             'typeof'
  263.             'unlock'
  264.             'until'
  265.             'variant'
  266.             'wend'
  267.             'while'
  268.             'with'
  269.             'withevents'
  270.             'write'
  271.             'xor')
  272.           TokenTypes = 4
  273.           IgnoreCase = True
  274.         end>
  275.       HighlightPos = cpAny
  276.       IgnoreAsParent = False
  277.     end
  278.     item
  279.       DisplayName = 'Sub begin line break'
  280.       StyleName = 'Line separator'
  281.       BlockType = btLineBreak
  282.       ConditionList = <
  283.         item
  284.           TagList.Strings = (
  285.             'end')
  286.           CondType = tcNotEqual
  287.           TokenTypes = 4
  288.           IgnoreCase = True
  289.         end
  290.         item
  291.           TagList.Strings = (
  292.             'sub')
  293.           TokenTypes = 4
  294.           IgnoreCase = True
  295.         end
  296.         item
  297.           TagList.Strings = (
  298.             'end')
  299.           CondType = tcNotEqual
  300.           TokenTypes = 4
  301.           IgnoreCase = True
  302.         end>
  303.       HighlightPos = cpAny
  304.       IgnoreAsParent = False
  305.     end
  306.     item
  307.       DisplayName = 'Sub end line break'
  308.       StyleName = 'Line separator'
  309.       BlockType = btLineBreak
  310.       ConditionList = <
  311.         item
  312.           TagList.Strings = (
  313.             'sub')
  314.           TokenTypes = 4
  315.           IgnoreCase = True
  316.         end
  317.         item
  318.           TagList.Strings = (
  319.             'end')
  320.           TokenTypes = 4
  321.           IgnoreCase = True
  322.         end>
  323.       LinePos = lbBottom
  324.       HighlightPos = cpAny
  325.       IgnoreAsParent = False
  326.     end
  327.     item
  328.       DisplayName = 'Sub start'
  329.       StyleName = 'Sub background'
  330.       BlockName = 'Sub start'
  331.       NotParent = True
  332.       ConditionList = <
  333.         item
  334.           TagList.Strings = (
  335.             'end')
  336.           CondType = tcNotEqual
  337.           TokenTypes = 4
  338.           IgnoreCase = True
  339.         end
  340.         item
  341.           TagList.Strings = (
  342.             'sub')
  343.           TokenTypes = 4
  344.           IgnoreCase = True
  345.         end
  346.         item
  347.           TagList.Strings = (
  348.             'end')
  349.           CondType = tcNotEqual
  350.           TokenTypes = 4
  351.           IgnoreCase = True
  352.         end>
  353.       BlockEnd = 'Sub end'
  354.       Highlight = True
  355.       NameFmt = '%s1 %s0'
  356.       DynHighlight = dhRange
  357.       HighlightPos = cpAny
  358.       IgnoreAsParent = False
  359.     end
  360.     item
  361.       DisplayName = 'Sub end'
  362.       BlockName = 'Sub start'
  363.       BlockType = btRangeEnd
  364.       ConditionList = <
  365.         item
  366.           TagList.Strings = (
  367.             'sub')
  368.           TokenTypes = 4
  369.           IgnoreCase = True
  370.         end
  371.         item
  372.           TagList.Strings = (
  373.             'end')
  374.           TokenTypes = 4
  375.           IgnoreCase = True
  376.         end>
  377.       HighlightPos = cpAny
  378.       IgnoreAsParent = False
  379.     end
  380.     item
  381.       DisplayName = 'Begin'
  382.       ConditionList = <
  383.         item
  384.           TagList.Strings = (
  385.             'end')
  386.           CondType = tcNotEqual
  387.           TokenTypes = 4
  388.           IgnoreCase = True
  389.         end
  390.         item
  391.           TagList.Strings = (
  392.             'function'
  393.             'if'
  394.             'property'
  395.             'select'
  396.             'type'
  397.             'with')
  398.           TokenTypes = 4
  399.           IgnoreCase = True
  400.         end
  401.         item
  402.           TagList.Strings = (
  403.             'end')
  404.           CondType = tcNotEqual
  405.           TokenTypes = 4
  406.           IgnoreCase = True
  407.         end>
  408.       IdentIndex = 1
  409.       BlockOffset = 1
  410.       BlockEnd = 'End'
  411.       DisplayInTree = False
  412.       HighlightPos = cpAny
  413.       CollapseFmt = '%s1 %s0'
  414.       IgnoreAsParent = False
  415.     end
  416.     item
  417.       DisplayName = 'End'
  418.       BlockType = btRangeEnd
  419.       ConditionList = <
  420.         item
  421.           TokenTypes = 4
  422.         end
  423.         item
  424.           TagList.Strings = (
  425.             'end')
  426.           TokenTypes = 4
  427.           IgnoreCase = True
  428.         end>
  429.       SameIdent = True
  430.       HighlightPos = cpAny
  431.       IgnoreAsParent = False
  432.     end
  433.     item
  434.       DisplayName = 'Block comment'
  435.       BlockName = 'Block comment'
  436.       NotParent = True
  437.       ConditionList = <
  438.         item
  439.           TokenTypes = 2
  440.         end>
  441.       BlockEnd = 'Block comment end'
  442.       DisplayInTree = False
  443.       HighlightPos = cpAny
  444.       IgnoreAsParent = False
  445.     end
  446.     item
  447.       DisplayName = 'Block comment end'
  448.       BlockType = btRangeEnd
  449.       ConditionList = <
  450.         item
  451.           TokenTypes = 509
  452.         end
  453.         item
  454.           TokenTypes = 2
  455.         end>
  456.       BlockOffset = 1
  457.       HighlightPos = cpAny
  458.       IgnoreAsParent = False
  459.     end>
  460.   CodeTemplates = <>
  461.   SubAnalyzers = <>
  462.   SampleText.Strings = (
  463.     #39' Syntax highlighting'
  464.     'Function PrintNumber'
  465.     '  Dim Number'
  466.     '  Dim X      34.4e+5'
  467.     ''
  468.     '  Number = 123456'
  469.     '  Response.Write "The number is " & number'
  470.     '             '
  471.     '  For I = 0 To Number'
  472.     '    X = X + &h4c'
  473.     '    X = X - &o8'
  474.     '    X = X + 1.0'
  475.     '  Next'
  476.     ''
  477.     '  I = I + @;  '
  478.     'End Function')
  479.   TokenTypeNames.Strings = (
  480.     'Unknown'
  481.     'Comment'
  482.     'Identifier'
  483.     'Symbol'
  484.     'String'
  485.     'Integer const'
  486.     'Float const'
  487.     'Hex const'
  488.     'Char const')
  489.   MarkedBlockStyle = 'Marked block'
  490.   DefaultStyleName = 'Default'
  491.   Extentions = 'bas'
  492.   LexerName = 'Visual Basic'
  493.   LineComment = #39
  494. end
  495.